home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-11-19 | 1.8 KB | 56 lines | [TEXT/MPS ] |
- /*
- File: SampleLibrary.exp
-
- Contains: Library and FunctionSet declarations for PSampleLibrary
-
- Copyright: © 1993 by Apple Computer, Inc., all rights reserved.
-
- */
-
-
- #include <LibraryManager.h>
-
- #define kTrafficLightLibID "slm:samp$PTrafficLight"
- #define kTrafficLightFunctionSet "slm:samp$PTrafficLightFunctionSet,1.1"
-
- /*————————————————————————————————————————————————————————————————————————————————————
- Library declarations defines the ID of the shared library and the version.\
- initproc(optional) "C" routine to be called immediately after loading
- cleanupProc(optional) "C" routine to be called after library is unloaded
- flags(optional)
- noSegUnload The segments of the shared library cannot be unloaded.
- preload All segments of the shared library should be loaded at
- library load time.
- id(required) Defines the ID of the library
- version(required) Defines the version of the library.
- memory(optional) The default pool memory allocation will be the
- client from client pool.
- local from local pool
- ————————————————————————————————————————————————————————————————————————————————————*/
-
- Library
- {
- id = kTrafficLightLibID;
- version = 1.1;
- memory = client;
- };
-
- /*————————————————————————————————————————————————————————————————————————————————————
- Declarations of functions we want to export. Since the functions are pascal
- functions we need to put the pascal keyword in front of the function name.
- ————————————————————————————————————————————————————————————————————————————————————*/
-
- FunctionSet lighttrafficfunctionset
- {
-
- id = kTrafficLightFunctionSet;
- version = 1.1;
- exports = pascal NewTrafficLight,
- pascal FreeTrafficLight,
- pascal GetLightState,
- pascal SetLightState,
- pascal DrawLight,
- pascal AdjustTrafficLightMenus,
- pascal DoTrafficLightMenuCommand;
- };
-